package com.zzgele.qmzb.api.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zzgele.qmzb.api.core.AbstractService;
import com.zzgele.qmzb.api.dao.DiamondRechargeLogMapper;
import com.zzgele.qmzb.api.model.DiamondRechargeLog;
import com.zzgele.qmzb.api.service.DiamondRechargeLogService;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.math.BigDecimal;


/**
 * Created by Martin on 2017/08/15.
 */
@Service(interfaceClass = DiamondRechargeLogService.class,proxy="jdk")
@Component
@Transactional
public class DiamondRechargeLogServiceImpl extends AbstractService<DiamondRechargeLog> implements DiamondRechargeLogService {
    @Resource
    private DiamondRechargeLogMapper diamondRechargeLogMapper;
    public BigDecimal getTotalMoney(Long uid){
        return diamondRechargeLogMapper.getTotalMoney(uid);
    }

}
